Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow getColor to work with an array of color types #453

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

lloydk
Copy link
Collaborator

@lloydk lloydk commented Feb 25, 2024

Added the ability to pass an array of color types to getColor.

This allows you to do:

let [c1, c2] = getColor(["red", "blue"])

instead of the more repetitive

let c1 = getColor("red")
let c2 = getColor("blue")

As discussed in #451

Added the ability to pass an array of color types to getColor.

This allows you to do:

let [c1, c2] = getColor(["red", "blue"])

instead of the more repetitive

let c1 = getColor("red")
let c2 = getColor("blue")
Copy link

netlify bot commented Feb 25, 2024

Deploy Preview for colorjs ready!

Name Link
🔨 Latest commit 618a318
🔍 Latest deploy log https://app.netlify.com/sites/colorjs/deploys/65db65a046fb6d0008a8e38c
😎 Deploy Preview https://deploy-preview-453--colorjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/getColor.js Show resolved Hide resolved
@lloydk lloydk removed the request for review from MysteryBlokHed February 25, 2024 23:04
@lloydk lloydk merged commit 1483025 into color-js:main Feb 25, 2024
5 checks passed
@lloydk lloydk deleted the getcolor branch February 25, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants